package com.mdd.common.enums;

/**
 * TODO
 *
 * @Description
 * @Author 幻速
 * @Date 2023/10/27 14:49
 **/
public enum OrderEnum {


    //订单状态：0待支付 1待签约 2车辆准备中3待提车4租赁中5待结算6待确认7已完成8已取消
    TO_SIGNED(0, "0待支付"),
    SIGNED_ORDER(1,"1待签约"),
    PREPARATION_ORDER(2,"车辆准备中"),
    VEHICLE_DELIVERED_ORDER(3,"待提车"),
    UNDER_WAY(4,"租赁中"),
    UN_SETTLE_ORDER(5,"5结算中"),
    UN_CONFIRMED_ORDER(6,"待确认"),
    FINISHED_ORDER(7,"已完成"),
    CANCEL_ORDER(8,"已取消"),
    PAID_ORDER(9,"已支付"),
    REFUNDED_ORDER(10,"已退款");;

    private final Integer code;
    private final String msg;

    OrderEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
